Network file server sharing local caches of file access information in data processors assigned to respective file systems

ABSTRACT

A network file server includes a first set of data processors for receiving requests from clients, and a second set of data processors for accessing read-write file systems. A respective data processor in the second set is assigned to each file system for exclusive management of read and write locks on the file system. Each data processor in the first set can authorize access to file systems directly accessed by more than one data processor in the second set. Processing of a request for access that is authorized is continued by the data processor that is assigned to manage the locks on the file system to be accessed. The exclusivity of lock management eliminates cache coherency problems, and dynamic load balancing can be used to prevent the lock management from becoming a bottleneck to performance. A preferred embodiment includes a cached disk storage subsystem linked to data mover computers. Each data mover has authorization and ownership information for a plurality of file systems, and maintains a local cache of locking information for file systems that the data mover can directly access. The data mover receives a client request, and if access is authorized, checks whether it can directly access the file, and if not, forwards the request to another data mover.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates generally to data storage systems, and more particularly to network file servers.

2. Background Art

Mainframe data processing, and more recently distributed computing, have required increasingly large amounts of data storage. This data storage is most economically provided by an array of low-cost disk drives integrated with a large semiconductor cache memory. Such cached disk arrays were originally introduced for use with IBM compatible host computers. A channel director in the cached disk array executed channel commands received over a channel from the host computer. More recently, a network attachment has been proposed for interfacing the cached disk array to a network. The network attachment, for example, is a computer programmed to communicate with clients on a network by following a network communication protocol, and to communicate with the cached disk array by issuing channel commands. Although this approach has the advantage of using a conventional cached disk array, the capabilities of the cached disk array are under utilized in this configuration, because the network attachment is a bottleneck to data access.

SUMMARY OF THE INVENTION

In accordance with one aspect of the invention, there is provided a method of servicing data access requests from clients in a data network. The data network has a first set of data processors receiving client requests for access to a plurality of read-write file systems. A second set of data processors manages locks on the read-write file systems, and a respective one of the data processors in the second set of data processors is presently assigned to manage locks on each of the read-write file systems. The method is used when any one of the data processors in the first set of data processors receives a client request for access to any one of the read-write file systems, as specified by the client request. In response to the data processors receiving the client request, stored assignment information is accessed indicating the respective one of the data processors in the second set of data processors that is presently assigned to manage locks on the file system. Processing for the request is continued by the respective one of the data processors in the second set of data processors indicated by the stored assignment information as being presently assigned to manage locks on the file system. The respective one of the data processors in the second set of data processors indicated by the stored assignment information continues the processing of the client request by performing lock management for the file system for access to the file system as requested by the client request.

In accordance with another aspect of the invention, there is provided a method of servicing a request from a client in a data network for access to a read-write file. A data processor in the network receives the request. The request is decoded to identify the client and a requested data access operation and a file system to which access is requested. Stored authorization information is accessed to obtain access requirements for the requested data access upon the file system, and the request is rejected if access rights of the client do not satisfy the access requirements for the requested data access upon the file system. If the access rights of the client satisfy the access requirements for the requested data access upon the file system, then there is initiated continued processing for the request by a data processor indicated by stored assignment information as presently assigned to access the file system. The data processor indicated by the stored assignment information as presently assigned to access the file system accesses stored locking information indicating whether or not the requested data access operation by the client would be inconsistent with any pending data access operation upon the file system; and if the requested data access operation by the client would be inconsistent with a pending data access operation upon the file system, then processing of the request is suspended, and if the requested data access operation by the client would not be inconsistent with any pending data access operation upon the file system, the requested data access operation upon the file system is performed.

In accordance with another aspect of the invention, there is provided a method of configuring a network file server for servicing requests from clients on a network for read-write access to read-write file systems. The network file server has a cached disk storage subsystem storing the file systems and a multiplicity of data mover computers linking the cached disk storage subsystem to the network for servicing the requests by transferring data between the clients and the cached disk storage subsystem. Data mover computers are configured into a first set of data mover computers and read-write file systems are configured into a first set of file systems. The first set of data mover computers includes a plurality of data mover computers each configured for authorizing requests for access to a plurality of read-write file systems in the first set of file systems. One and only one of the data mover computers in the first set of data mover computers is assigned to perform lock management and data access for each of the file systems in the first set of file systems. Data mover computers not included in the first set of data mover computers are configured into a second set of data mover computers and read-write file systems not included in the first set of file systems are configured into a second set of file systems. The second set of data mover computers includes a plurality of data mover computers configured for authorizing requests for access to read-write file systems in the second set of file systems. One and only one of the data mover computers in the second set of data mover computers is assigned to perform lock management and data access for each of the file systems in the second set of file systems.

In accordance with yet another aspect of the invention, there is provided a method of load balancing for a network file server for servicing requests from clients on a network for read-write access to read-write file systems. The network file server has a plurality of data processors linked to the network for servicing the requests. Each of the data processors is configured for receiving client requests for access to each of the read-write file systems and for checking whether each request is authorized for access to the read-write file system. One of the data processors is assigned to manage locks on each of the read-write file systems for controlling access to the read-write file system. Loading on the data processors assigned to manage locks on the read-write file systems is monitored and the assignments of the data processors to the read-write file systems is changed to reduce loading of more heavily loaded ones of data processors assigned to manage locks on the read-write file systems.

In accordance with still another aspect of the invention, there is provided a method employed by a file system service of a network file server for responding to a request from a client on a network for access to a file in a file system. A data processor on the network receives the request. The request is decoded, and client authorization for access to the file in the file system is checked. Also it is checked whether the file is in a remote file system. The request is exported to the remote file system when the file is in a remote file system, and when the file is not in a remote file system, the request is forwarded for further processing by a data processor assigned to manage access to the file system, and the data processor assigned to manage access to the file system verifies that the file system is exported to the client, and then processes the request and sends a reply to the client.

In a preferred embodiment, a network file server includes a cached disk storage subsystem and data mover computers linking the cached disk storage subsystem to the data network for the transfer of data between the cached disk storage subsystem and the network. Each of the data mover computers maintains a local cache of file access information including locking information for a respective group of files that the data mover can directly access, and an index that indicates the group of files that each data mover can directly access. When a data mover receives from a network client a request to access a file, the data mover checks the index to determine whether or not it can directly access the file; if so, it accesses its local cache of file access information to directly access the file in the cached disk storage subsystem; if not, it forwards the request from the client to the data mover that maintains the local cache of file access information for the file.

BRIEF DESCRIPTION OF THE DRAWINGS

Other objects and advantages of the invention will become apparent upon reading the following detailed description with reference to the accompanying drawings wherein:

FIG. 1 is a perspective view of a network file server that incorporates the present invention;

FIG. 2 is a block diagram of the network file server of FIG. 1 and its connections to a network;

FIG. 3 is a block diagram of a cached disk storage subsystem used in the network file server of FIG. 1;

FIG. 4 is a block diagram showing software structure in the network file server of FIG. 1;

FIG. 5 is a more detailed block diagram showing various modules of the software structure of FIG. 4;

FIG. 6 is a specific example of software modules of FIG. 4;

FIG. 7 is a block diagram of a data access model of the network file system of FIG. 1 programmed for read-write sharing of file systems by respective clusters of data movers;

FIG. 8 is a flowchart showing a basic method of processing of client file access requests in accordance with the data access model of FIG. 7;

FIG. 9 is a block diagram showing program modules and data structures in the cached disk storage subsystem, a display and keyboard server, and two data movers of the network file server of FIG. 1;

FIG. 10 is a diagram showing information in a read-only cache of client information in the data movers of FIG. 9;

FIG. 11 is a diagram showing information in a read-only cache of file authorization and ownership information in the data movers of FIG. 9;

FIG. 12 is a diagram showing information in a cache of file access information in the data movers of FIG. 9;

FIG. 13 is a diagram showing information in a cache of file data and attributes in the data movers of FIG. 9;

FIG. 14 is a flowchart of programming in an authentication module used in the data movers of FIG. 9;

FIG. 15 is a first portion of a flowchart showing programming in an authorization module used in the data movers of FIG. 9;

FIG. 16 is a flowchart showing programming in the authorization module for routing a client request from the data mover having received the client request to the data mover that is the owner of the file for which access is requested;

FIG. 17 is a flowchart showing programming in a file access module in the data movers of FIG. 9;

FIG. 18 is a first portion of a flowchart showing programming in a file cache module in the data movers of FIG. 9;

FIG. 19 is a second portion of the flowchart of the file cache module;

FIG. 20 is a flowchart showing programming in the file access module for servicing a wait list of clients waiting for locks on a file being closed;

FIG. 21 is a flowchart showing programming of a load balancing module in the display and keyboard server of FIG. 9;

FIG. 22 is a flowchart showing programming in a failure recovery module in the display and keyboard server of FIG. 9;

FIG. 23 is a flowchart of a subroutine called by the failure recovery module for migrating files owned by a failed data mover to a spare data mover;

FIG. 24 is a flowchart of a subroutine called by the failure recovery module for migrating files owned by a failed data mover to operational data movers;

FIG. 25 is a block diagram showing an alternative implementation of a network file server employing the present invention;

FIG. 26 is a flowchart of a commit operation for a network file server that does not use a cached disk storage subsystem and instead uses a remote dual copy technique to ensure data availability;

FIG. 27 is a flowchart of a subroutine for migrating file systems owned by a failed data processor to a spare data processor for a network file server that does not use a cached disk storage subsystem and instead uses a remote dual copy technique to ensure data availability;

FIG. 28 is a flowchart of a subroutine for migrating file systems owned by a failed data processor to operational data processors for a network file server that does not use a cached disk storage subsystem and instead uses a remote dual copy technique to ensure data availability;

FIG. 29 is a block diagram of a network file server using a plurality of data processors distributed in a data network;

FIG. 30 is a diagram showing a format for a client request that is transmitted over the data network from a client to a server;

FIG. 31 is a diagram showing a format for a client request as transmitted over an internal Ethernet link in the network file server of FIG. 9 from a data mover having received a client file access request to the data mover that is the owner of the file for which access is requested;

FIG. 32 is a diagram showing a format of a message transmitted over the network in FIG. 29 from a data processor having received a file access request from a client to a data processor that is the owner of the local copy of the file for which access has been requested; and

FIG. 33 is a table of file system ownership found in each of a number of digital computers in the distributed file server of FIG. 29.

While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof have been shown in the drawings and will be described in detail. It should be understood, however, that it is not intended to limit the invention to the particular forms shown, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the scope of the invention as defined by the appended claims.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

I. The Architecture of a Network File Server

Turning now to FIG. 1 of the drawings, there is shown a network file server generally designated 20 incorporating the present invention. The network file server 20 includes an array of data movers 21, a network server display and keyboard 32, a cached disk storage subsystem 23, and an optional tape silo 24. At least two of the data movers 28, 29 are also programmed to service the network server display and keyboard 32, and these particular data movers will be referred to as display and keyboard servers. However, at any given time, only one of the display and keyboard servers 28, 29 is active in servicing the network server display and keyboard 32.

The network file server 20 is managed as a dedicated network appliance, integrated with popular network operating systems in a way, which, other than its superior performance, is transparent to the end user. It can also be provided with specialized support for network backup services and for isochronous data streams used in live, as well as store-and-forward, audio-visual applications, as described in Published International Application WO 97/16023 published May 1, 1997 entitled “Staggered Stream Support for Video On Demand” by Uresh K. Vahalia et al., incorporated herein by reference.

The network file server 20 is directed to high-end file server applications such as the Network File System (NFS, version 2 and 3) (and/or other access protocols). NFS is a well-known IETF file access protocol standard (RFC 1094, Sun Microsystems, Inc., “NFS: Network File System Protocol Specification,” Mar. 1, 1989). NFS acts as a network server for network communications by providing basic file access operations for network clients. Such basic file access operations include opening a file, reading a file, writing to a file, and closing a file.

The clustering of the data movers 21 as a front end to the cached disk storage subsystem 23 provides parallelism and scalability. The clustering of random-access memory in the data movers 21 also supplements the cache resources of the cached disk storage subsystem 23, as will be further described below.

Each of the data movers 21, including the display and keyboard servers 28, 29, is a high-end commodity computer, providing the highest performance appropriate for a data mover at the lowest cost. The data movers 21 are mounted in a standard 19″ wide rack. Each of the data movers 21, for example, includes an Intel processor connected to an EISA or PCI bus and at least 64 MB of random-access memory. The number of the data movers 21, their processor class (i486, Pentium, etc.) and the amount of random-access memory in each of the data movers, are selected for desired performance and capacity characteristics, such as the number of concurrent network clients to be serviced. Preferably, one or more of the data movers 21 are kept in a standby mode, to be used as “hot spares” or replacements for any one of the other data movers that fails to acknowledge commands from the other data movers or is otherwise found to experience a failure.

Each of the data movers 21 contains one or more high-performance FWD (fast, wide, differential) SCSI connections to the cached disk storage subsystem 23. Each of the data movers 21 may also contain one or more SCSI connections to the optional tape silo 24. Each of the data movers 21 also contains one or more bidirectional network attachments 30 configured on the data mover's EISA or PCI bus. The network attachments 30, for example, are Ethernet, FDDI, ATM, DS1, DS3, or channelized T3 attachments to data links to a network (25 in FIG. 2). The network 25 connects these network attachments to the network clients 54, for example, through an ATM switch 53. Each of the data movers 21 also includes an additional Ethernet connection to an internal dual-redundant Ethernet link (26 in FIG. 2) for coordination of the data movers with each other, including the display and keyboard servers 28, 29.

The display and keyboard server 28, 29 active for servicing of the display and keyboard 32 can also conduct one or more standard management and control protocols such as SNMP (RFC 1157, M. Schoffstall, M. Fedor, J. Davin, J. Case, “A Simple Network Management Protocol (SNMP),” May 10, 1990). SNMP is an internet protocol that permits inspection and modification of system variables such as the network address (IP) and the number of buffers for network communication. In addition to the connections described above that the data movers 21 have to the network 25, the cached disk storage subsystem 23, and the optional tape silo 24, each of the display and keyboard servers 28, 29 also has a connection to a serial link 31 to the network server display and keyboard 32. The display and keyboard servers 28, 29 run a conventional operating system (such as Windows NT or UNIX) to provide a hot-failover redundant configuration for servicing of the display and keyboard 32. An operator at the display and keyboard 32 uses SNMP for management and control of the resources of the network file server 20.

The display and keyboard server that is not active in servicing the display and keyboard 32 periodically monitors the display and keyboard server that is active, for example by polling over the dual-redundant internal Ethernet 26 or by receiving a status signal that is periodically transmitted by the active one of the display and keyboard servers. When the monitoring by the display and keyboard server that is not active in servicing the display and keyboard 32 indicates a failure of the active display and keyboard server, then the display and keyboard server that is not active in servicing the display and keyboard sends a command over the dual-redundant Ethernet to the active display and keyboard server to shut down the active display and keyboard server, and then the display and keyboard server that is not active in servicing the display and keyboard assumes active status and begins servicing the display and keyboard.

The cached disk storage subsystem 23 is configured for an open systems network environment. Preferably the cached disk storage subsystem 23 is a Symmetrix 5500 (Trademark) ICDA (Trademark) manufactured by EMC Corporation, 171 South Street, Hopkinton, Mass., 01748-9103.

Turning now to FIG. 2, there is shown a block diagram of the network file server 20 including the SCSI connections 40 among the cached disk storage subsystem 23, the optional tape silo 24, the display and keyboard servers 28, 29, and the data movers 21. The cached disk storage subsystem 23 includes a large capacity semiconductor cache memory 41 and SCSI adapters 45 providing one or more FWD SCSI links to each of the data movers 21, including the display and keyboard servers 28, 29.

The optional tape silo 24 includes an array of SCSI adapters 50 and an array of read/write stations 51. Each of the read/write stations 51 is connected via a respective one of the SCSI adapters 50 and a FWD SCSI link to a respective one of the data movers 21, including the display and keyboard servers 28, 29. The read/write stations 51 are controlled robotically in response to commands from the data movers 21 for tape transport functions, and preferably also for mounting and unmounting of tape cartridges into the read/write stations from storage bins.

In a preferred mode of operation, to archive data from a file from the network to tape, one of the data movers 21 receives the file from the network 25 and prestages the file to the cached disk storage subsystem 23 at a high rate limited by the network transmission rate (about 150 GB/hour). Then one of the data movers 21 destages the file from the cached disk storage subsystem 23 to an associated one of the read/write stations 51 at a tape device speed (about 7 GB/hour). For most applications, prestaging to disk can be done immediately, and staging from disk to tape including sorting of files onto respective tape cassettes can be done as a background operation or at night, when the load on the network file server 20 is at a minimum. In this fashion, the cached disk storage subsystem 23 can absorb a high data inflow aggregation from tens or hundreds of network links streaming from multiple sites, and balance this load on the read/write stations 41. Prestaging to the cached disk storage subsystem allows better use of the read/write stations 51, matching of server flow to tape streaming flow, and reduction of tape and read/write station wear. Prestaging to the back-end also allows multiple classes of backup and restore services, including instant backup for files maintained on disk in the cached disk storage subsystem 23, and temporary batch backup pending a success or failure acknowledgment. Prestaging to the cached disk storage subsystem 23 also makes economical an on-line archive service performing the staging from the cached disk storage subsystem 23 to tape as a background process.

Turning now to FIG. 3, there is shown a more detailed block diagram of the cached disk storage subsystem 23. The cache memory 41 is composed of dynamic RAM cards mating with a dual redundant back-plane system bus 42. The cached disk storage subsystem 23 also includes micro-processor cards that mate with the back-plane system bus 42 and are programmed to function as channel directors 43 or disk directors 44. Each of the channel directors 43 is interfaced through one of a number of SCSI adapters 45 to the SCSI interface of one of the data movers 21. Each of the disk directors 44 is interfaced through at least one of a number of disk adapters 46 connected to a string of commodity FBA (fixed-block architecture) disk drives 47. Each channel director 43 accesses data in the cache memory 41 in response to a request from its associated data mover. If data to be read by a channel director is not found in cache memory, one of the disk directors 44 and disk adapters 46 transfers or “stages” the data from the disk array 47 to the cache memory 41. In a background process, the disk directors 44 and disk adapters 46 also write-back data from the cache memory 41 to the disk array 47, after the channel directors write data to the cache memory 41. In addition to providing intermediate storage for the data transferred between the channel directors 43 and the disk directors 44, the cache memory 41 also provides intermediate storage for control information transferred among the channel directors and disk directors.

The bus 42 is preferably the back-plane of a printed-circuit card-cage or main-frame in the cached disk storage subsystem 23, and each of the channel directors 43 and disk directors 44 is constructed on a printed circuit board that is mounted in the card-cage or main-frame. The channel director and disk director boards are further described in Yanai et al. U.S. Pat. No. 5,335,352, issued Aug. 2, 1994, and entitled Reconfigurable, Multi-Function Disc Controller, incorporated herein by reference. The cache memory 41 is constructed on a number of additional printed circuit boards that are mounted in the card-cage or main-frame. Further details regarding the construction and operation of the cached disk storage subsystem 23 are disclosed in Yanai et al., U.S. Pat. No. 5,206,939, issued Apr. 27, 1993; and Yanai et al. U.S. Pat. No. 5,381,539, issued Jan. 10, 1995; all incorporated herein by reference.

II. Network File Server Software

Turning now to FIG. 4, there is shown a block diagram of software 60 providing a real-time processing environment in the network file server (20 of FIGS. 1 and 2). The software 60 is executed by the processors of the data movers 21, including the display and keyboard servers 28, 29. The software 60 also provides an environment for managing file services and multiple high-performance data streams as well as a standard set of service-level application program interfaces (APIs) for developing and porting file service protocols (such as NFS). The software 60 is an application run by a general purpose operating system such as Microsoft NT.

The software 60 includes a file system 61 for controlling transfer of data between the network 25 and the cached disk storage subsystem (23 in FIGS. 1 and 2) or the optional tape silo (24 in FIGS. 1 and 2). A buffer cache 62 composed of part of the random-access memory of the data movers 21 is used as a buffer for this data transfer.

The software 60 also includes a kernel program 63 providing a real-time scheduler. The kernel program 63 separates control information (file access and synchronization protocols) from the underlying data stream.

The software 60 further includes an SNMP management agent 64 supporting a Simple Network Management Protocol. SNMP is a standard internet protocol for inspecting and changing system variables. For example, the SNMP management agent is used when an operator at the network server display and keyboard (32 in FIG. 1) sets the network IP address of the network file server (20 in FIG. 1).

Turning now to FIG. 5, there is shown a more detailed block diagram of the software structure 60 in each data mover. The file system 61 in FIG. 4 has been expanded into its components. These components are a common file system 71, a group of software modules providing communication between the common file system and the network, and a group of software modules providing communication between the common file system and the cached disk storage subsystem 23 or the optional tape silo 24. The common file system 71 uses the Virtual File System (VFS), which is an industry-standard back-end file system switch, to interface with the physical file systems 79. VFS translates NFS Common File System requests. (The NFS Common File System Requests in themselves are translations of NFS requests to the intended physical file storage devices. NFS is one of the file access protocols 75.) The common file system 71 accesses the buffer cache 62 during data transfers between the network (25) and disk or tape storage (23, 24).

The group of software modules providing communication between the common file system and the network includes file access protocols 75 and a network server interface 73 using communication stacks 74 and network link drivers 72. The file access protocols 75 include a set of industry standard network server protocols such as NFS. Other file access protocols compatible with the network 25 could also be used, such as Novell NCP, LanManager, SMB, etc.

The file access protocols 75 are layered between the communication stacks 74 and the common file system 71. The communication stacks 74 provide the network access and connectivity for the data transmitted to the file access protocol layer 75 from the network link drivers 72. The communication stacks include TCP/IP, IPX/SPX, NETbeui, or others. The network server interface 73 allows porting of the network software and file access protocols 72, 74, 75. This interface 73 is System V Streams. There could be multiple concurrent instances of the file access protocols 75, communication stacks 74, and drivers 72.

The group of software modules providing communication between the common file system and the integrated cached disk array 23 or tape silo 24 includes physical file systems 79 and SCSI CAM 76 which provides a standard framework (SCSI Common Access Method) to the SCSI bus drivers 77. The physical file systems 79 include at least one conventional industry standard-based file system such as the UNIX ufs file system. Other industry standards-based file systems could also be used, such as VxFS, ISO9660, etc. The buffer cache 62 buffers data passed between the SCSI drivers 77 and the physical file system 79. There could be multiple concurrent instances of the network drivers 72, communication stacks 74, file access protocols 75, SCSI drivers 77, and physical file systems 79.

FIG. 6 is a specific example of software modules of FIG. 5. A conventional UNIX File System (UFS) is a physical file system exported onto the network using NFS. The file system switch that directs client NFS requests to the intended physical file system is implemented using a standard virtual file-system (Vnode/VFS) interface.

The file server software runs as an embedded system that includes a real-time kernel (63 in FIGS. 4 and 5). The main components of the kernel are a task scheduler, frameworks for writing device drivers, and a number of system services that are commonly found in similar real-time kernels. The system services include kernel interfaces to memory management, timers, synchronization, and task creation. All kernel tasks run in a single unprotected address space. As a result of this, no copy operations are required to move data from the cached disk storage subsystem 23 to the network. Copying is eliminated by passing references to common buffers across all subsystems.

The kernel 63 may use the scheduler described in K. K. Ramakrishnan et al., “Operating System Support for a Video-On-Demand File Service,” Multimedia Systems, Vol. 3, Springer-Verlag, 1995, pp. 53-65, incorporated herein by reference, and Vaitzblit et al., U.S. Pat. No. 5,528,513, incorporated herein by reference. This scheduler supports three classes of schedulable tasks; namely, general-purpose tasks, real-time tasks, and isochronous tasks. Isochronous tasks can be used for providing continuous media file access services, which are not necessary for practicing the present invention. Real-time and general-purpose tasks are scheduled using a weighted round-robin scheme.

The general-purpose class supports pre-emptible tasks that are suitable for low-priority background processing. In order to ensure that general-purpose tasks can always make progress, this class is granted a minimum CPU processing quantum.

The general-purpose class is implemented as a standard threads package, with a thread corresponding to a general-purpose task as described herein. A suitable threads package is described in A. D. Birrell, “An Introduction to Programming with Threads,” Systems Research Center Technical Report, No. 35, Digital Equipment Corporation, Maynard, Mass., (1989).

The real-time class is suitable for tasks that require guaranteed throughput and bounded delay. Real-time tasks are not pre-emptible; however, a software provision is made to allow for the existence of safe “preemption windows” in which all isochronous tasks can be executed. A weight and a scheduling flag is assigned to every real-time task. The weight is used as the means to limit the amount of processing time taken by the real-time task at each invocation. The scheduling flag is used to indicate that the task has pending work and to signal the scheduler that the task needs to be invoked. The scheduling flag may be set by an interrupt service routine or a task of any class.

In the network file server, real-time tasks are used to implement “polling” device drivers and communication stacks. The method of polling for pending work, as opposed to interrupt-driven processing, contributes to system stability and alleviates most of the problems that arise during overloads. It also provides isolation between multiple real-time tasks that have differing performance requirements. Polling regulates the flow of traffic into the network file server. Just as flow control mechanisms, such as a leaky bucket scheme, protect network resources from large bursts, polling protects the end-system resources by regulating the frequency at which work queues are scanned and limiting the amount of work that may be performed during each scan of the round-robin schedule.

The real-time tasks are implemented as callable routines. Invoking a real-time task amounts simply to a procedure call.

Selecting a real-time task involves scanning a set of scheduling flags; for each flag that is set, the scheduler invokes the corresponding task with the assigned weight as a parameter. The real-time task is expected to process at most the number of work units equal to the task's weight that was passed to it as a parameter. At the completion of each unit of work, the real-time task opens up the “preemption window” which is used by the scheduler to run all the isochronous tasks that may have arrived in the time it took the real-time task to process one unit of work. Upon exhausting the allowed number of work units (the weight) or less, the task voluntarily returns to the scheduler. After having completed one round of scanning the flags, the scheduler switches to the general purpose class.

General purpose tasks that are ready for execution are placed on a “GP ready” queue, which is served in a round-robin fashion. If the “GP ready” queue is empty, the scheduler initiates a new round of servicing the real-time tasks. Otherwise, the scheduler starts a general-purpose quantum timer, and activates the first task from the “GP ready” queue. The task runs until it blocks or the quantum timer expires. If the task blocks, its context is saved on a wait queue and the next task from the “GP ready” queue is restored for execution. If the quantum timer expires, the scheduler saves the context of the currently running task at the end of the “GP ready” queue and switches to a new round of servicing the real-time tasks. The execution of the general-purpose tasks may be preempted one or more times by the isochronous tasks. The execution of the general-purpose class continues after each preemption until the total time spent in processing general-purpose tasks reaches the guaranteed quantum.

In the absence of isochronous tasks, the scheduler can provide guarantees on throughput and delay bounds for real-time tasks (this assumes that all requests destined for a real-time task generate a constant amount of work). A maximum service delay is the time it takes to complete one round of real-time tasks scheduling plus the general purpose time quantum. Let R denote this maximum service delay in steady state. Weights may be assigned to real-time tasks to allocate and guarantee bandwidth averaged over the maximum service delay, R. If W denotes the weight given to a real-time task (the number of units of this task, or requests, processed in one round) , then the task's steady state throughput is (W/R) requests per unit time.

III. File Directory Organization

There are two basic objectives in organizing the respective tasks of the cached disk storage subsystem 23 and the data movers 21 in the network file server 20 of FIG. 1. The first and primary objective is to organize the respective tasks so that the processing load on the cached disk storage subsystem 23 is balanced with the processing load on the data movers 21. This balancing ensures that neither the cached disk storage subsystem 23 nor the data movers 21 will be a bottleneck to file access performance. The second basic objective is to minimize modifications or enhancements to the cached disk storage subsystem 23 to support network file access.

To some degree, the second objective is driven by a desire to minimize marketing and support issues that would arise if the cached disk storage subsystem 23 were modified to support network file access. The second objective is also driven by a desire to minimize the addition of processing load on the cached disk storage subsystem associated with network file access. The network file server architecture of FIG. 1 permits data mover computers 21 to be added easily until the cached disk storage subsystem 23 becomes a bottleneck to file access performance, and therefore any additional processing load on the cached disk storage subsystem associated with network file access would tend to cause a reduction in the network file access performance of a fully configured system employing a single cached disk storage subsystem.

In a preferred arrangement, the cached disk storage subsystem 23 recognizes logical block addresses. Each logical block, for example, is a 512 byte sector. The cached disk storage subsystem has a limited internal locking facility ensuring that reading or writing to a sector is an atomic operation. The cached disk storage subsystem need not be modified to provide these basic facilities. Network file access, however, requires access to the logical blocks on a file basis and not on a logical block address basis. In particular, a network file access request specifies a file identifier, an offset in the file specifying where to begin the reading or writing of data, and the amount of data to be read or written.

The information for mapping of logical block addresses of storage in the cached disk storage subsystem 23 to the network files recognized by the network clients 54 is stored in a file directory. The file directory maps a file identifier or name to a string of logical blocks comprising the file, and also records other attributes of the file, such as the file's creation date and the client that created the file; the date the file was last modified and the client that last modified the file; access restrictions upon the file, such as a password or “read only” access; and whether or not the file is presently opened by a client, and the access rights or locks granted to the client for the file or particular logical blocks of the file. At least for recovery purposes, a copy of the file directory is stored in the cached disk storage subsystem 23 corresponding to the network file data stored in the cached disk storage subsystem 23. To minimize additional loading of the cached disk storage subsystem 23, however, the cached disk storage subsystem is not involved with maintenance of the file directory, other than reading or writing specified logical block addresses of the file directory in response to conventional access commands from the data movers.

IV. Sharing Local Caches of File Access Information in Data Processors Assigned to Respective File Systems

To minimize loading on the cached disk storage subsystem 23 during file access, each data mover accessing a file should have a local cache of file directory information for the file down to a logical block level of granularity. For more uniform distribution of the loading on the data movers, the network clients should have the capability of accessing each file through more than one data mover. However, if the local cache of file directory information is replicated among the data movers, there would be a need for a cache consistency scheme to ensure that replicated read-write file access information, such as locking information, would be consistent in the caches of the data movers. Therefore, a scheme has been devised to avoid the replication of read-write file access information in the local caches of the data movers, and to permit load balancing of the read-write file access information among the local caches of the data movers without substantial disruption of ongoing access operations.

In accordance with a basic aspect of the invention, each file is assigned to a respective one of the data movers, and this respective one of the data movers, which will be referred to as the data mover owning the file and having a primary relationship to the file, governs access to the file in the cached disk storage subsystem. However, any one of a number of data mover may receive from a client a request for access to each file. If the data mover receiving the access request is primary with respect to the file, it processes the request and accesses the file in the cached disk storage subsystem. If the data mover receiving the access request is not primary with respect to the file, this “secondary” data mover forwards the access request to the primary data mover so that the primary data mover may satisfy the client's request by accessing the file. Preferably, the secondary data mover checks the access request for authentication of the request and for authorization of access to the file, and if the request cannot be authenticated and authorized, the secondary data mover rejects the request and therefore does not forward it to the primary data mover. Preferably, the primary data mover returns an acknowledgement of the request and any other results of the data access request to the secondary data mover for return to the client.

Referring to FIG. 7, there is shown a data access model of the network file server 20 when programmed for read/write sharing of file systems by clusters of data movers 21 and file systems 80 in the network file server. A file system is simply a definite set of files. In NFS, files are indexed in a file directory organized as a tree, and in the following description of the preferred embodiments, it will be assumed that each file system is identified by a node in the tree. A reader unfamiliar with NFS should review Network Working Group, “NFS: Network File System Protocol Specification,” Sun Microsystems, Inc., Request for Comments (RFC) 1094, March 1989, incorporated herein by reference.

The file systems 80, for example, include three sets of files systems 81, 82, 83, and each set is accessible to network clients 54 via an associated set of the data movers 21. In particular, all of the files in the file system set 81 are accessible to the clients via each of the data movers in the data mover set 84, all of the file systems in the file system set 82 are accessible to the clients via each of the data movers in the data mover set 85, and all of the files in the file system set 83 are accessible via each of the data movers in the data mover set 86. The union of each file system set and its associated data mover set will be referred to as a cluster. By including more than one data mover in each cluster, each read-write file system is accessible via more than one data mover so that data availability is not compromised.

There is, however, a cost associated with giving client access to a read-write file system via multiple data movers, primarily due to management of file locks. Read-only file systems avoid the costs of managing file locks, and therefore it is feasible to permit each data mover to service client read-only requests and to directly access any read-only file system in the cached disk storage subsystem. For read-write file systems, however, it is desirable to limit the number of data movers that can directly access the files in at least some of the read/write file systems, by defining a cluster of file systems and associated data movers through which a client can access the file systems. Therefore, in the logical configuration of FIG. 7, each read-write file system and each data mover may belong to only one cluster. A read-only file system may belong to multiple access clusters. Exports are cluster-wide; that is, all data movers in each cluster provide the same access to each file system in the cluster. Each file system in the cluster can be accessed via a client directly or via another server at multiple access points known in NFS as “mount points,” as will be further described below.

To limit the cost associated with providing access to a read/write file system via a plurality of data movers in a cluster, each read/write file system in the cluster is assigned one and only one of the data movers in the cluster to be a primary data mover with respect to the file system. This primary data mover has an exclusive ownership relationship to each file in the read/write file system, and has the exclusive right to directly access data in each file in the read/write file system. The primary data mover manages the read and write locks on the files in the file system. For example, in FIG. 7, the data mover 91 is the owner of the file system 87, and the data mover 92 is the owner of the file system 88. However, as will be further described below, the display and keyboard server (28 in FIG. 1) can change dynamically the file system ownership by the data movers.

Each of the data movers in a cluster has a directory of the file systems in the cluster and a data base of the mount points for the file systems and the data mover owner of each read-write file system. When any data mover in a cluster receives a request for access, it checks the data base, and if it finds that the file system is a read/write file system having a different primary data mover, then the data mover forwards the client request to the primary data mover. Read requests, write requests, mount requests, and lock requests are examples of data access requests that are forwarded to the primary data mover for the file system to be accessed. If a data mover receives a request for access to a file system in the cluster and finds that the request is a read-only request or the data mover finds that it is the primary data mover for the file system, then it accesses the file system directly. Look-up of the file name in the file directory and management of access authorization for a file system can be distributed between a secondary data mover that receives and interprets a client request for access to the file system and the primary data mover that manages the locks on the file system.

Referring to FIG. 8, there is shown a basic flowchart for the processing by a data mover of an NFS request from a client in accordance with the data access model of FIG. 7. In a first step 91, the data mover receiving the NFS request decodes the request to verify the RPC portion of the request, checks a cache of previously received requests to eliminate any duplicate request, and checks the client's authorization for the desired access. If the request is not authenticated and authorized, as tested in step 92, then execution branches to step 93 to reject the request. Otherwise, execution continues from step 92 to step 94.

In step 94, execution branches to step 95 if the file for which access is requested is in a remote file system. This occurs if a “mount point” is reached during file look-up as the file name, which is a path through the directory tree, is traversed from the root of the tree to the file be accessed. In step 95, the data mover sends the request to an NFS thread for export to the remote file system corresponding to the “mount point.” If the remote file system is in the cached disk storage subsystem (23 in FIG. 7), then the mount request is exported by forwarding it to the data mover that is the owner of the file system of the “mount point.” If the process of file-name path traversal ends at the file to be accessed without ever reaching a “mount point,” then execution continues from step 94 to step 96.

In step 96, execution branches to step 97 if the file to be accessed is in a file system owned by a data mover different from the data mover that received, authenticated and authorized the client request. In step 97, the data mover having received the client request forwards the request to the data mover that owns the file system. If the file to be accessed is in a file system owned by the data mover that received, authenticated, and authorized the client request, then execution continues from step 96 to step 98. Step 98 is also reached when another data mover forwards an authenticated and authorized request for access to a file that is owned by the data mover that is executing the program represented by the flowchart in FIG. 8.

In step 98, the data mover sends the request to an NFS thread to verify that the file system is exported to the client. Then in step 99 the data mover processes the request (for example reads or writes data to the file) and sends a reply to the client.

Referring now to FIG. 9, there is shown a preferred organization of caches and program modules in the network file server 20. In FIG. 9, only one display and keyboard server 28 and only two other data movers 101, 102 are shown. It should be understood that the network file server 20 would include the second display and keyboard server (29 in FIG. 1) as well as additional data movers and optionally the tape silo (24 in FIG. 1). The second display and keyboard server would include program modules similar to the program modules in the display and keyboard server 28 as shown in FIG. 9. Each of the two display and keyboard servers could also be programmed with caches and modules similar to the caches and modules show in the data movers 101 and 102 in FIG. 9. Each of the additional data movers would also include caches and program modules similar to the caches and program modules shown in the data movers 101 and 102 in FIG. 9.

The data mover 101 has a network interface 103 representing the programming of the data mover for obtaining file access requests from clients in the data network 25. Therefore, the network interface 103 includes the network link drivers 72, the System V Stream 73 and the communication stacks 74 shown in FIG. 5. The network interface 103 forwards the file access requests to an authentication program module 104 in the data mover 101.

The authentication module 104, authorization module 106, file access module 108, and file cache module 112 perform functions of the NFS file access protocols, VFS common file system 71, and the UFS physical file system. In general, the authentication module 104 incorporates NFS command decoding procedures and operating system type client authentication procedures, the authorization module 106 incorporates NFS file access authorization procedures, and the file access module 108 and file cache module 112 incorporate VFS and UFS file system procedures for executing NFS commands. However, the modules are organized not to achieve a one-to-one correspondence with NFS, VFS and UFS but to pipeline the functions of NFS, VFS, and UFS in such a way as to practice the method of the present invention and to permit simultaneous execution of the pipelined functions for different data access requests by pipelined data processors.

The authentication module 104 attempts to authenticate the client request to determine generally what file access rights the client has. In particular, the authentication module 104 accesses information about the client from a read-only cache of client information 105. Once the client request is authenticated, it is passed on to an authorization program module 106.

The authorization module 106 accesses a read-only cache of file authorization and ownership information 107 to obtain information about the file to be accessed. If the client does not have sufficient authorization for the requested file access, then the authorization module rejects the request. Otherwise, ownership information from the read-only cache 107 indicates which of the data movers 101, 102, etc., is the owner of the file to be accessed. If the data mover 101 is the owner of the file to be accessed, then the authorization module 106 passes the request to a file access module 108 in the data mover 101. Otherwise, the authorization module 106 passes the request to an Ethernet interface 109 which transmits the request over the dual redundant internal Ethernet link 26 to an Ethernet interface and file access module in the data mover that is the owner of the file to be accessed.

The file access module 108 accesses a cache 111 of file access information in order to determine whether file access is precluded by a read or write lock owned by another client. In other words, the file access module 108 functions as a lock manager for the files systems owned by the data mover 101. When access to the file is not precluded by a lock owned by another file, the file access module 108 may grant access to the client presently requesting access, and if access is granted, the file access module passes the request to a file cache module 112.

The file cache module 112 functions as a file system cache manager for managing a cache of file and data attributes 113. The file cache module permits the client to perform asynchronous data access operations for a transaction upon the data and attributes in the cache 113 without writing new data down to the cached disk storage subsystem 23 until a transaction is to be committed. Such asynchronous write operations, for example, are permitted in NSF version 2.

The file cache module 112 and cache of file data and attributes 113 also solves a data security problem that might otherwise occur for asynchronous operation where data and attributes may be written by the client in any order to the network file server. The new file data for a transaction is always written from the data mover to the cached disk storage system before the new file attributes. Otherwise, if new file attributes were to be written to the cached disk storage subsystem and the data mover were to fail before writing the new file data, the new file attributes could point to old file data of a file owned by a different client, which might permit the old file data to be accessed by a client without authorization during a recovery operation.

The caches 105, 107, 111 and 113 in the data mover 101 cache data stored in the cached disk storage subsystem 23. The read-only cache of client information 105 caches client information 114. This information is maintained by a network administrator accessing the display and keyboard server 28 by SNMP commands from the network 25 or by SNMP commands from the network server display and keyboard 32.

The read-only cache of file authorization and ownership 107 caches file authorization and ownership information 115 stored in the cached disk storage subsystem 23. The file authorization information originates from a particular client that first created the file, although the file authorization information could be changed by the system administrator or another client having authority to change the file authorization information. The file ownership information includes an indication that a particular data mover owns the file, and this data mover ownership originates from the display and keyboard server 28.

The cache of file access information 111 caches file access information 118 stored in the cached disk storage subsystem 23. The cache of file access information 111 functions as a write-back cache in response to client requests that are commit requests. Synchronous write requests and close file requests are examples of commit requests. The file access information in the cache 111 normally originates from its associated file access module 108 unless file ownership is changed by the load balancing module 116 of the display and keyboard server 28, or by the failure recovery module 117 of the display and keyboard server.

The cache of file data and attributes 113 caches file data and attributes from the file data and attributes 119 stored in the cached disk storage subsystem 23. The cache 113 of file data and attributes functions as a write-back cache in response to client commit requests.

Although the file access information 118 and file data and attributes 119 stored in the cached disk storage subsystem 23 are cached in the caches of the multiplicity of data movers, there is not a cache coherency problem because the information for each read-write file at any given time normally resides only in one of the data movers; namely, the data mover that is the owner of the file. Moreover, when data mover ownership of a file is in the process of being transferred to another data mover, access to the file is temporarily suspended. The exclusive data mover ownership of the files also simplifies recovery from data mover failure. The exclusive ownership of the files by the data movers does not present a substantial bottleneck to file access because load balancing can be performed dynamically before a serious bottleneck occurs.

As should be evident from FIG. 9, the exclusive ownership of files by the data movers also leads to modularization of the file access functions in such a way that the network file server could be expanded to include any number of data movers, and each data mover could be constructed using multiple pipelined processors. For example, each pipelined processor could correspond to one of the program modules in FIG. 9. The exclusive ownership of the files by respective data movers also eliminates any cache consistency problems for the use of file system caches in the data movers. The file system caches in the data movers can substantially reduce the loading on the cached disk storage subsystem by transaction processing applications.

Referring to FIG. 10, there is shown an example of the read-only cache of client information 105. For each client, the information includes a client identifier (ID), a client password, a priority level, a security level, an access group, and a network IP address. The client ID is a unique identifier to distinguish each client from other clients. A password can be assigned to a client and periodically changed in order to prevent other entities on the network from masquerading as the client. The client may have a priority level assigned to permit some clients to have priority over other clients when the clients are waiting for a lock on a file. A client may be assigned a security level in order to control access to files containing sensitive material. The client may also be a member of various access groups having access to sets of related files. Finally, a client may have an assigned network IP address.

Referring to FIG. 11, there is shown an example of the read-only cache of file authorization and ownership information 107. For each file, the information includes a file identifier, a corresponding file password, an access type, a security level, an access group, a client owner, a data mover owner, and any remote file system to which a file access request must be exported. The file ID is unique to each file. A file password may be assigned to a file to restrict access to only those entities knowing the password. A file may have a security level so that access to the file is granted to only clients having at least the security level assigned to the file. A file has an access type, such as read-write or read-only. A file may also be accessible by a particular access groups of clients, and may have one access group for read-only access and another access group for read-write access.

Each file includes at least one client owner who may delete the file and change its authorization and ownership information. Typically the client owner created the file. Each read-write file also has a data mover owner.

The data mover owner of a file is the data mover that manages the creation of the file, the locks on the file, and the exporting of file access request to any remote file system. Associated with the data mover owner in the cache of file access information is a flag SF indicating whether or not a transfer of data mover ownership is in progress, for example by the load balancing module (116 of FIG. 9).

If a file is referenced in a file system but is not local to the file system, then the file authorization and ownership information identifies a remote file system to which can be exported a client request for the file. For example, NFS file names are defined as a path through a directory tree representing the file system including the file, and a reference to a remote file system may be included at any node on the path. Nodes referencing remote file systems are called “mount points.” Therefore, it is permissible for an NFS file or file system to be included by reference in a file directory of one file system, referred to as the local file system, and be located in another file system, referred to as the remote file system. To facilitate the file-name path traversal of NFS, the cache of file authorization and ownership information is organized as a hierarchical data structure corresponding to the file directory. Information such as the data mover owner included at a node of the data structure is inherited by descendant nodes in the data structure.

Referring to FIG. 12, there is shown an example of the cache of file access information 111. Associated with each file identifier is locking information including flags R and W indicating whether or not there is a read lock or write lock on the file, a list of lock owners when there is a lock on the file, and a list of any clients waiting for a lock on the file. Typically only a single client can have a write lock on a file at any given time, and a write lock precludes any other client from obtaining a read lock or a write lock on the file, or reading or writing to the file. Typically a plurality of clients may have a read locks on a file, and a read lock precludes other clients from obtaining a write lock on the file or writing to the file. Also associated with each file identifier is a “write pending” flag indicating that the locking information for the file in the cache 111 is different from the file access information (118 in FIG. 9) in the cached disk storage system and is to be written down to the cached disk storage system when a current transaction is committed.

Referring now to FIG. 13, there is shown an example of information in the cache of file data and attributes 113. Associated with each file ID are data, attributes, a write pending flag, and an abort flag. The attributes typically include the size of the file, the client owning the file, the time the file was last modified, and pointers to locations in the cached disk storage subsystem where the data resides. The write pending flags indicate whether the data or attributes have been modified during a current transaction and need to be written down to the cached disk storage subsystem or to the read-only caches of file authorization and ownership in all of the data movers when a transaction is committed. The abort flag indicates whether or not a current transaction should be aborted in response to a commit request from a client. The abort flag is used in connection with a recovery operation when a data mover failure is discovered, as will be further described below with reference to FIGS. 22 to 24.

Referring to FIG. 14, there is shown a flowchart of the authentication module 104. In a first step 131, the client's request is decoded, and a comparison is made of a cache of recently received requests in order to identify any duplicate request. The decoding process could also check whether the client's request has been corrupted during transmission. For example, a message digest or cyclic redundancy code could be computed over the concatenation of the NFS request and a client's secret password, and then the concatenation of the message digest or cyclic redundancy code and the client's password could be encrypted, and the encrypted result appended to the NFS message and transmitted as the client's request. In the decoding step 131, the encrypted value could be decrypted and used to check for any tampering with the NFS request or the client's secret password. This technique, for example, is disclosed in an experimental protocol for Internet security described in Network Working Group, G. Welters, Editor, “User-Based Security Model for SNMPv2,” RFC 1910, February 1996, incorporated herein by reference. The decoding step 131 then decodes the RPC portion of the NFS request to determine the nature of the request. If the request is found not to be valid, as tested in step 132, then the request is rejected in step 133. Otherwise, execution continues to step 134.

In step 134, the data mover looks up the client in the cache of client information. If an entry for the client is not found, as tested in step 135, and the client is requesting something other than a read-only access, as tested in step 136, then in step 137, the message is rejected and an error message is returned to the client. If an entry for the client is not found in step 135, but the client is requesting a read-only access as tested in step 136, then execution branches to step 138 to set the client's access authority to public read-only. In other words, if a client is not known to the network file server, it may only perform a read-only access of a public file.

If an entry for the client is found in the cache of client information, then execution continues from step 135 to step 139. In step 139, the client's password and access authority are read from the read-only cache of client information (105 in FIG. 9) in order to perform permission checking for the data access. The NFS protocol, strictly speaking, does not define the permission checking used by servers. However, a typical permission checking method uses the AUTH_UNIX style authentication. The server gets the client's effective “uid”, effective “gid”, and groups on each call and uses them to check permission.

In the example of FIG. 14, in step 140, the client's password from the cache of client information is compared to the password in the client request. If there is not a match, then execution branches from step 140 to 141 to reject the request and return an error message to the client. In other words, if there is a match, execution continues from step 140 to step 151 in FIG. 15.

Referring to FIG. 15, there is shown a flowchart of the authorization module 106. In a first step 151, the data mover looks up the file name in the read-only cache of file authorization and ownership (107 in FIG. 9). If the file name is not found, as tested in step 152, then execution branches to step 153. In step 153, the data mover checks whether the client request is a request to create a new file system. If not, then the request is invalid because it requests access to an unknown file or the creation of a new file in an unknown file system, and therefore execution branches to step 154 to reject the request and return an error message to the client. If the request is a request to create a new file system, then execution branches to step 155. In step 155, the data mover checks the client's access authority (i.e., the client's security level and access group) to determine whether the client is authorized to create a new file. If not, then execution branches to step 156 to reject the request and return an error message to the client. Otherwise, if the client is authorized to create a new file, then execution continues from step 155 to step 157.

In step 157 the data mover requests the load balancing module (116 in FIG. 9) in the display and keyboard server 28 to allocate a data mover to own the new file system. If the load balancing module cannot find sufficient resources to allocate, as tested in step 158, then execution branches to step 159 to reject the request and return an error message to the client. Otherwise, if sufficient resources are allocated for the new file system, then execution continues from step 158 to step 160 to return a message to the client indicating that the request has been successfully completed.

If the file name in the client request is found in the read-only cache of file authorization and ownership information (107 in FIG. 9), then execution continues from step 152 to step 161. In step 161 the data mover reads the file authorization and ownership information from the cache, and compares it to information in the client request in order to determine whether the client is authorized to perform the requested file access. In particular, the authorization module compares the access type of the file to the access requested by the client, compares any file password for the file to any file password in the client's request, compares the security level of the file to the security level of the client, and compares the access group and owner of the file to the client's access group and client identifier.

If the client is not authorized to perform the requested file access, as tested in step 162, then execution continues to step 163 to reject the request and return an error message to the client. Otherwise, if the client is authorized, execution branches from step 162 to step 171 in FIG. 16.

Referring to the continued flowchart in FIG. 16, in step 171 the data mover checks whether the file is in a remote file system. If so, then execution branches to step 172 to export the request to the remote file system indicated in the read-only cache of file authorization and ownership information (107 of FIG. 9).

Although steps 152 to step 171 have just been described with reference to a search for a file name, in the NFS protocol the file name is in the form of a path name in a directory tree, and steps 152 to 171 are in effect repeated at each node while traversing the path name beginning with the file system name at the root of the directory tree. Execution branches from step 171 to step 172, for example, at a node which is defined in the read-only cache of file authorization and ownership as a “mount point.”

If the entire path name is traversed without reaching such a “mount point”, then execution continues from step 171 to step 173 indicating that the client's request has been authenticated and the client is authorized to access the file. If the file has an access type of read-only, as tested in step 173, then execution branches to step 180 of FIG. 17 to begin file access. However, for a read-write file, access at the present time could be precluded because another client could hold a lock on the file that is inconsistent with the access presently requested.

The management of the file locks is done only by the data mover owning the file to be accessed. This data mover owner of the file is indicated in the read-only cache of file authorization and ownership information 107, and constitutes part of the file authorization and ownership information read by the data mover in step 161 of FIG. 15. However, the request should not be immediately transferred to the primary data mover if a transfer of data mover ownership is in progress. Such a transfer of ownership will be further described in FIG. 21, and the presence of a transfer of ownership in progress is indicated by the flag SF associated with the file in the read-only cache of file authorization and ownership (107 in FIG. 11). If in step 174 the flag SF is found to be set, indicating that such a transfer of data mover ownership is in progress, then execution branches to step 175 to suspend processing of the client's request until new data mover ownership information is received from the load balancing module (116 in FIG. 9) as will be further described with reference to FIG. 21.

If no transfer of data mover ownership is found to be in progress in step 174, or once the transfer of ownership has been completed, then execution continues from step 174 or step 175 to step 176. Step 176 checks whether the data mover having received the client request is the owner of the file for which access is requested. If another data mover is the owner, then execution branches from step 176 to step 177 to send the file access request over the local Ethernet (26 in FIG. 9) to the file access module of the other data mover, and processing of the client request is continued by the file access module of the other data mover. Otherwise, if the data mover having received the client request is the owner of the file for which access is requested, execution continues from step 176 to step 180 of FIG. 17.

Referring to FIG. 17, there is shown a flowchart of the file access module 108. In a first step 180, the data mover verifies that the file system is exported to the client. Next, in step 181 the data mover checks whether the request is a request to create a new file or new file name for an existing file. If so, execution branches to step 182 to create a new file with a unique file ID or to change the file name to a unique file name. Creation or renaming of files is done in the file access module by the data mover owning the file system of the file instead of in the authorization module to ensure that no two different data movers will simultaneously create two different files having the same file name. For example, the client request specifies a desired file name, and in step 182 the data mover checks that the desired file name is not the name of an existing file. Then in step 183 the data mover returns a completion message to the client indicating whether or not the request was completed successfully.

If the client request is not a request to create a new file or a rename a file, execution continues to lock management beginning in step 184. In step 184 the data mover obtains the locking information for the file to be accessed from the cache of file access information (111 in FIG. 9). In particular, the data mover looks up the file name in a directory of the cache to determine whether the locking information for the file is in cache and if so where in the cache, and if locking information for the file is not in the cache, the locking information is read from the cached disk storage system and written to the cache in the data mover. Then in step 185 the data mover checks whether the file is open for the access requested by the client; in other words, the file should be subject to a lock consistent with the client access and the client should have ownership rights with respect to the lock. If not, execution branches from step 185 to step 186.

In step 186, execution branches to step 187 if the file is locked. In step 187, execution branches to step 188 to open the file for the client's access and to grant a lock if the client should be granted a lock to open the file for the client's access. For example, if the client has a read lock on the file and would like to perform a read-write operation on the file, then the client's read lock may be promoted to a write lock so long as other clients do not also have a read lock on the file and so long as a higher priority client is not waiting for a write lock on the file. If the client should not be granted a lock to open the file for the client's desired access, then execution continues from step 187 to step 189. In step 189, the client is placed on a wait list for the file.

If in step 186 the file is not locked, then execution continues from step 186 to step 188 to open the file for the client's access and to grant the client an appropriate lock on the file. If the file is found to be open for the client's access in step 185 or the file is opened for the client's access in step 188, then execution continues to step 191 in FIG. 18.

Referring to FIG. 18, there is shown a flowchart of the file cache module 112. In a first step 191, the data mover looks up the file in the cache of file data and attributes. If memory in the data mover's cache of file data and attributes is not allocated to the file or portion of the file to be accessed, as tested in step 192, then execution branches to step 193. In step 193, the data mover allocates data mover cache memory to the file data specified by the client request, and in step 194 execution branches depending on whether the request is for a read-write or read-only. If not, then in step 195 the file data specified by the request is fetched from the cached disk storage subsystem and written to the data mover's cache of file data and attributes.

If in step 192 the file data is found in the data mover cache, then execution continues to step 196. Execution also continues to step 196 after step 195 and after step 194 when the data mover finds that the client is requesting write-only access.

In step 196, the data mover accesses the data in the data mover cache of file data and attributes, and the data mover writes any new file data and attributes to the data mover cache, and sets write-pending flags for these new file data and attributes. Then in step 197 execution branches depending on whether the client request is a commit request. If not, then in step 198 the data mover returns an access completion message to the client, but does not write any new data or new attributes down to the cached disk storage subsystem.

If the client request is a commit request, then execution continues from step 197 to step 201 in the continuing flowchart in FIG. 19. In step 201, execution branches to step 202 if the abort flag for the file is found to be set. In step 202 the data mover returns a failure to commit message to the client, and once the client acknowledges receipt of the failure to commit message, then in step 203 the data mover clears the abort flag and processing for the client request is finished.

If in step 201 the data mover finds that the abort flag is not set, then execution continues from step 201 to step 204. In step 204 the data mover writes any write-pending data of the file from the data mover cache to the cached disk storage subsystem. Then in step 205 the data mover writes any write-pending attributes for the file from the data mover cache to the cached disk storage subsystem. By writing all of the new file data to the cached disk subsystem before any of the new file attributes, a data security problem is avoided which might otherwise arise if a data mover failure were to occur during the writing of data and attributes from the data mover to the cached disk storage subsystem. After step 205, execution continues to step 206 of the file access module program in FIG. 20.

In step 206 of FIG. 20, execution branches to step 207 if the commit request is not a “close file” request. In step 207 the data mover writes any write-pending file access information from the cache of file access information of the data mover down to the cached disk storage subsystem. After receiving an acknowledgement from the cached disk storage subsystem, execution continues to step 208. In step 208, the data mover returns a commit completion message to the client, and processing of the client request is finished.

Execution continues from step 206 to step 209 if the commit request is a close file request. In step 209, the data mover releases the client's lock on the file. If the wait list for the file is empty, as tested in step 210, then execution branches to step 207. Otherwise, in step 211, the data mover searches the wait list for a client for which a lock should be granted. Any lock which should be granted must be consistent with any locks presently on the file. If a lock could be granted to a number of clients on the wait list, then one of them is selected based on the positions of the clients in the wait list, their priority, and the respective durations of time with which the clients have been waiting on the list, in order to insure that all of the clients are eventually granted a lock in a fair manner. If such a client is not found, as tested in step 212, then execution branches to step 207. If such a client is found, then execution continues from step 212 to step 213 to remove this client from the wait list and grant the lock to this client. Then in step 214 the data mover sends a lock granted message to this client. Execution loops back from step 214 to step 210 until either the wait list becomes empty or no clients on the list should be granted a lock on the file.

Referring to FIG. 21, there is shown a flowchart of the load balancing module 116 of the display and keyboard server. In a first step 221, the display and keyboard server finds that there is an overload of a particular data mover “y” because of too many access requests to the file systems that it owns. For example, when the scheduler of a data mover finds that its queue of requests to be processed by its file access module is becoming full, the data mover reports the overload to the display and keyboard server. Also, during periodic polling of each data mover for failure recovery, as described below with reference to FIG. 22, the display and keyboard server obtains the number of queued requests to the file access module in the data mover, so that a relative state of overload of the data mover with respect to the other data movers can be detected well before the queue becomes full. The authentication module of a data mover may also become overloaded by client request from the network, but this overloading cannot be solved by a change in file system ownership by the data movers, and instead is corrected upstream of the network by the clients retransmitting unacknowledged requests and the clients or switches in the network directing retransmitted requests to other data movers.

If an overload is found for the data mover “y”, then execution branches to step 222. In step 222 the display and keyboard server selects a read-write file system “x” owned by the data mover “y” for ownership to be transferred. For example, the read-write file system “x” is the first read-write file system that the display and keyboard server finds in the directory of file authorization and ownership information (115 in FIG. 9). Then in step 223 the display and keyboard server selects a data mover “z” to become the new owner of the file system “x”. For example, the data mover “z” is the data mover presently having the least loading. In step 224, the display and keyboard server suspends data mover ownership of the file system “x” in all of the caches in all of the data movers. This is done by setting the flag SF for the file system “x” in the read-only caches of file authorization and ownership (107 in FIG. 9 and FIG. 11) in the data movers and in the file authorization and ownership information (115 in FIG. 9) in the cached disk storage subsystem. In step 225, the display and keyboard server waits for the completion of any access by the data mover “y” to the file system “x”. This is done, for example, by sending a command to the data mover “y” that would not have any priority over any commands that could have been sent to the data mover “y” from the data movers for access to the file system “x”. Such a command could be a command for performing the next step 226 of transferring to the cache of the data mover “z” any write-pending data and attributes for files in the file system “x” in the cache of file data and attributes in the data mover “y”. Then in step 227 the display and keyboard server 28 sets the data mover ownership of the file system “x” to the data mover “z” in all of the read-only caches of file authorization and ownership in all of the data movers of the cluster and in the cached disk storage subsystem. The suspend flag SF for the file system is cleared in each cache when the new data mover ownership for the file system is written into each cache. Shortly after the new data mover ownership for the file system is written into each cache, any client requests for access to the file system “x” that were suspended become resumed and redirected to the data mover “z”. These file access requests are processed in data mover “z” just as they would have been had they been sent to the data mover “y” for file access. This process of changing the ownership of the file system “x” can be entirely transparent to the client and does not require any client requests to be retransmitted or transactions to be aborted.

Referring to FIG. 22, there is shown a flowchart of the failure recovery module 117. The failure recovery module detects a data mover failure by periodically polling the data movers. For example, in the first step 231, the display and keyboard server poles a next one of the data movers by transmitting to the data mover a sequence number. The data mover receives the sequence number, increments it, and returns it to the display and keyboard server along with a status message. The display and keyboard server checks the returned sequence number and the status message to determine whether there is a data mover failure. If there is a data mover failure, as tested in step 232, then execution branches to step 233.

In step 233 the display and keyboard server sends a message over the internal Ethernet (26) to shut down the failed data mover. Then in step 234 execution branches depending on whether there is a spare data mover. If not, then execution branches to step 235 to migrate ownership and access information of the files owned by the failed data mover to operational data movers. If there is a spare data mover, then execution continues from step 234 to step 236. In step 236, the display and keyboard server migrates ownership and access information of files owned by the failed data mover to the spare data mover.

Referring to FIG. 23, there is shown a flowchart of the subroutine for migrating to a spare data mover. In a first step 241, the display and keyboard server sends a signal to the spare data mover to cause the spare data mover to boot-up. Then in step 242 the display and keyboard server sends a command to the spare data mover to fetch, from the file access information (118 in FIG. 9) in the cached disk storage system, the file access information for the files owned by the failed data mover. The spare data mover loads this file access information into its cache (111 in FIG. 9) of file access information. Then in step 243 the spare data mover sets the abort flags of the write-locked files owned by the failed data mover. These abort flags are set in the spare data mover's cache (111 in FIG. 9) of file access information. In step 244, the display and keyboard server changes the data mover ownership of all files owned by the failed data mover to the replacement data mover. The display and keyboard server, for example, first changes the data mover ownership in the file authorization and ownership information (115 in FIG. 9) in the cached disk storage subsystem, and then changes the data mover ownership in the read-only cache of file authorization and ownership in each of the data movers.

Finally, in step 245, the display and keyboard server sends a command over the internal Ethernet 26 to program the network interface (103 in FIG. 9) of the spare data mover with the network address with the network address previously used by the failed data mover. The spare data mover, for example, has a standard network interface circuit card that interconnects the data processor of the data mover to a copper or fiber-optic line that is the data link (100 in FIG. 9) between the data mover (101 in FIG. 9) and the network (25 in FIG. 9). The spare data mover receives from the display and keyboard server the logical network address (IP address) and physical network address (MAC address) previously used by the failed data mover. The data processor of the spare data mover writes the physical network address (the MAC address) to a register in the standard network interface circuit card. The spare data mover uses the logical network address (the IP address) in receiving network messages in accordance with the network message protocol (the IP protocol). Therefore, the spare data mover assumes the identity of the failed data mover as seen by clients on the network.

The spare data mover, however, cannot complete any transactions that were pending at the time of failure of the failed data mover, because the data mover failure possibly caused a loss of state information including the loss of write-pending file data, write-pending file attributes, and write-pending file access information. The spare data mover sets the abort flags of the write-locked files owned by the failed data mover in step 243 in order to signal to the relevant clients the fact that the transactions have been aborted.

Referring to FIG. 24, there is shown a flowchart of the subroutine 235 for migrating ownership and access information of files owned by the failed data mover to operational data movers. In a first step 251, the display and keyboard server selects a file system “x” owned by the failed data mover. If there are no more file systems owned by the failed data mover, as tested in step 252, then the migration is finished. Otherwise, execution continues from step 252 to step 253.

In step 253, the display and keyboard server 28 selects an operational data mover “z” to become a new owner of the file system “x”. Then in step 254 the display and keyboard server sends a command to the data mover “z” to cause the data mover “z” to fetch the file access information for the file system “x” into its cache of file access information. In step 255 the data mover “z” sets the abort flags for any write-locked files in the file system “x”. Then in step 256 the display and keyboard server changes the data mover ownership of file system “x” to data mover “z” first in the file authorization and ownership information (115 in FIG. 9) in the cached disk storage subsystem and then in the read-only caches of file authorization and ownership in each of the data movers for the cluster including the failed data mover. Execution then loops back to step 251 to migrate all of the file systems owned by the failed data mover to other data movers in the cluster including the failed data mover.

The method of the present invention is applicable to various hardware architectures other than the architecture of FIG. 9. For example, an alternative construction for a network file server 300 is shown in FIG. 25. The network file server 300 includes a cached disk storage subsystem 301, a plurality of file access and cache units generally designated 302, a plurality of authentication and authorization units generally designated 303, a pair of redundant display and keyboard servers 204, 205, and a network server display and keyboard 306. Each authentication and authorization unit 303 includes a data processor programmed with a network interface, authentication module, read-only cache of client information, authorization module, read-only cache of file authorization and ownership, and an ethernet interface, similar to the components 103 to 107 and 109 shown in FIG. 9. Each file access and cache unit 302 includes a data processor programmed with an ethernet interface, a file access module, a cache of file access information, a file cache module, and a cache of file data and attributes, similar to the components 108 to 113 shown in FIG. 9.

In contrast to the network file server 20 of FIG. 9, each authentication and authorization unit 303 and each file access and cache unit 302 of the network file server 300 of FIG. 25 is embodied in a respective separate data processor. Consequently, when an authentication and authorization unit 303 has authenticated and authorized a client request, the client request must be routed over the dual redundant ethernet 308 to one of the file access and cache units 302. For access to a read-write file, the authentication and authorization unit 303 must route the client request to the file access and cache unit 302 having exclusive ownership of the file system including the read-write file. For a client request for access to a read-only file, the authentication and authorization unit 303 could route the client request to any one of the file access and cache units 302. For example, a respective one of the file access and cache units 302 could be assigned to each of the authentication and authorization units 303 for receiving requests for access to read-only files from the authentication and authorization unit. The dual redundant internal Ethernet link 308 functions as a data switch for routing the client requests for file access from the authentication and authorization units 303 to the file access and cache units 302 and returning responses from the file access and cache units to the respective authentication and authorization units 303 for return to the respective clients on the network 307.

The method of the present invention can also be practiced in a network file server having the architecture of FIG. 9 or FIG. 25 but with the cached disk storage system 23 or 301 omitted in each case. Instead of committing write-pending file data, and file attributes, and file access information to the cached disk storage system (e.g., in steps 204 and 205 of FIG. 19 and step 207 of FIG. 20) the write-pending file data, file attributes, and file access information would be committed to disk storage in each of the data movers of FIG. 9 or in each of the file access and cache units 302.

A read-only file systems that would not be very heavily accessed by the network clients could be stored in the disk storage of a particular one of the data movers or file access and cache units, and client requests for access to this read-only file system would be routed (in a similar manner to the routing of client requests for read-write file access) to the data mover or file access and cache unit having the read-only file system in its disk storage and therefore “owning” the read-only file system. A copy of a heavily accessed read-only file system could be stored in disk storage of each of the data movers or file access and cache units so as to avoid any bottleneck to file access.

A network file server not having a cached disk storage subsystem could also employ automatic load balancing. In step 226 of the load balancing module 116 of FIG. 21, the file system x data, attributes, and file access information would also need to be copied from the disk storage of data mover “y” (or file access and cache unit “y”) to the disk storage of data mover “z” (or file access and cache unit “z”).

A network file server not having a cached disk storage subsystem could use a remote dual copy technique to ensure that a remote copy of data stored on the disk storage of the failed data mover or failed file access and cache unit would be available for recovery purposes. For example, the network file server could employ the remote dual copy method described in Yanai et al. U.S. Pat. No. 5,544,347 issued Aug. 6, 1996 and entitled “Data Storage System Controlled Remote Data Mirroring with Respectively Maintained Data Indices,” incorporated herein by reference.

In a system using remote dual copy to provide data availability in the event of a failure in a system without a cached disk storage subsystem, client requests for access to a file would be routed to the data mover or file access and cache unit owning a local copy of the file system including the file to be accessed, and the write-pending data, attributes, and access information of the file would be committed to disk storage in a data mover or file access unit owning a remote copy of the file system, currently with the committing of the write-pending data, attributes, and access information to the disk storage in the data mover or file access and cache unit that is the owner of the local copy of the file system (e.g. in steps 204 and 205 of FIG. 19 and step 207 of FIG. 20).

Referring to FIG. 26, for example, there is shown a flowchart of the commit operation for a network file system which uses remote dual copy instead of a cached disk storage subsystem. Steps 204′, 205′, 206′, 207′ and 208′ correspond respectively to steps 204 and 205 of FIG. 19 and steps 206, 207, and 208 of FIG. 20. Step 219 corresponds to steps 210 to 214 in FIG. 20. In step 204′ the data processor (i.e., the data mover or file access and cache unit) owning the local copy of the file writes any write-pending file data to the local copy of the file on disk storage of the data processor owning the local copy of the file and to the remote copy of the file on the disk storage of the data processor owning the remote copy of the file. The data processor owning the local copy of the file writes to the remote copy of the file by first checking if ownership of the remote copy is suspend for a pending transfer of remote copy ownership. When the ownership of the remote copy is not suspended, the data processor owning the local copy of the file sends a write command and the write-pending file data to the data processor owning the remote copy of the file. The data processor owning the local copy of the file then waits for an acknowledgement from the data processor owning the remote copy of the file that the data processor owning the remote copy of the file has written the write-pending file data to the remote disk storage or at least to nonvolatile memory of the data processor owning the remote copy of the file.

In step 205′ the data processor owning the local copy of the file writes any write-pending file attributes to the local copy of the file on disk storage of the data processor owning the local copy of the file and to the remote copy of the file on the disk storage of the data processor owning the remote copy of the file. The data processor owning the local copy of the file writes to the remote copy of the file by checking whether the ownership of the remote copy is suspended for a transfer of remote copy ownership. When the ownership of the remote copy is not suspended, the data processor owning the local copy of the file sends a write command and the write-pending file attributes to the data processor owning the remote copy of the file. The data processor owning the local copy of the file then waits for an acknowledgement from the data processor owning the remote copy of the file that the data processor owning the remote copy of the file has written the write-pending file attributes to the remote disk storage or at least to nonvolatile memory of the data processor owning the remote copy of the file.

In step 206′, execution branches to step 207′ if the commit operation is a close file operation. Otherwise, execution continues to step 219 to perform wait list and file lock servicing (as described above with reference to steps 210 to 214 in FIG. 20), and execution continues from step 219 to step 207′.

In step 207′, the data processor owning the local copy of the file writes any write-pending file access information to the local copy of the file on disk storage of the data processor owning the local copy of the file and to the remote copy of the file on the disk storage of the data processor owning the remote copy. The data processor owning the local copy of the file writes to the remote copy of the file by checking whether the ownership of the remote copy is suspended for a transfer of remote copy ownership. When the ownership of the remote copy is not suspended, the data processor owning the local copy of the file sends a write command and the write-pending file access information to the data processor owning the remote copy of the file. The data processor owning the local copy of the file then waits for an acknowledgement from the data processor owning the remote copy of the file that the data processor owning the remote copy of the file has written the write-pending file access information to the remote disk storage or at least to nonvolatile memory of the data processor owning the remote copy of the file.

Finally, in step 208′, the data processor owning the local copy of the file returns a commit completion message to the client.

In a system that employs remote dual copy instead of a cached disk storage subsystem for ensuring data availability, the load balancing module of FIG. 21 could be used for transferring a read-write file system “x” having a local copy owned by a data processor “y”, except that in step 226 of FIG. 21, the local copy of the file system “x” in the disk storage of the data processor “y” would need to be copied to the disk storage of the data mover “z”, and in step 227 the data mover “z” would become the new owner of the local copy of the file system “x”.

A remote copy of a file system owned by the data processor “y” could also be transferred to another data processor “z” to reduce loading on the data processor “y”. In this case, in step 226 of FIG. 21, the remote copy of the file system “x” in the disk storage of the data processor “y” would be copied to the disk storage of the data processor “z”, and there would be no need in step 226 to transfer to the data processor “z” any data, attributes, or access information from the caches of the data processor “y” that is write-pending to the file system “x” since the caches of the data processor “y” should have no data, attributes or access information that is write-pending to the file system “x”. Moreover, in step 227 the data processor “z” would become the new owner of the remote copy of the file system “x”.

In a system that employs remote dual copy instead of a cached disk storage subsystem for ensuring data availability, the failure recovery module of FIG. 22 could be used for recovering from a failed data processor, but the migration subroutines called in steps 235 and 236 would be modified to transfer any remote copies owned by the failed data processor as well as any local copies owned by the failed data processor.

Referring to FIG. 27, there is shown a flowchart of a subroutine 236′ for migrating files owned by a failed data processor to a spare data processor in a system that uses remote dual copy instead of a cached disk storage subsystem for ensuring data availability. Steps 241′, 242′, 243′, 244′, and 245′ correspond to steps 241, 242, 243, 244, and 245 in FIG. 23. In a first step 241′, the active display and keyboard server boots up the spare data processor. Then in step 246 the remote copy file data, file attributes, and file access information in the disk storage of the data processors that own the remote copies of the local copy data in the disk storage of the failed data processor are copied to the disk storage of the replacement data processor. In step 247 the local copy file data, file attributes, and file access information in the disk storage of the data processors that own the local copies of the remote copy data in the disk storage of the failed data processor are copied to the disk storage of the replacement data processor.

In step 242′, the spare data processor writes into its cache the access information for the local files owned by the failed data processor. This could be done by fetching the information from the disk storage of the replacement data processor or this could be done in step 246 during the copying of this information to the disk storage of the replacement data processor. In step 243′, the spare data processor sets the abort flag of any write-locked local files owned by the failed data processor.

In step 244′, the active display and keyboard server changes the data processor ownership of all files owned by the failed data processor to the replacement data processor. Local files owned by the failed data processor become local files owned by the spare data processor, and remote files owned by the failed data processor become remote files owned by the spare data processor. Finally, in step 245′, the active display and keyboard server programs the network interface of the spare data processor with the network address previously used by the failed data processor, so that the spare data processor assumes the identity of the failed data processor as seen by network clients.

Referring to FIG. 28, there is shown a flowchart of a subroutine for migrating files owned by a failed data processor to operational data processors. Steps 251′, 252′, 253′, 254′, and 255′ correspond to steps 251, 252, 253, 254, and 256 of FIG. 24. In a first step 251′, the active display and keyboard server selects a file system “x” owned by the failed data processor. If there are no more file systems owned by the failed data processor, as tested in step 252′, then the migration is finished. Otherwise, execution continues to step 253′. In step 253′, the active display and keyboard server selects an operational data processor “z” to become a new owner of the file system “x”. Then in step 257, execution branches to step 258 if the failed data processor owns a local copy of the file system “x”. In step 258, the data processor “z” copies to its disk storage the remote copy file data, file attributes, and file access information from the disk storage of the data processor that is the owner of the remote copy of the file system “x”. Then in step 254′ the data processor “z” writes the file access information for the file system “x” into its cache of file access information. This is done so that in the next step 255′, the data processor “z” can set the abort flags for any write-locked files in the file system “x”. Then in step 259, the active display and keyboard server changes the ownership of the local copy of the file system “x” from the failed data processor to the data processor “z”. In this fashion, the data processor “z” becomes the owner of the local copy of the file system “x”.

In step 257, execution continues to step 260 if the failed data processor owns a remote copy of the file system “x”. In step 260, the data processor “z” copies to its disk storage the local copy file data, file attributes, and file access information from the disk storage of the data processor that is the owner of the local copy of the file system “x”. Then in step 261, the active one of the display and keyboard servers changes the data processor ownership of the remote copy of the file system “x” from the failed data processor to the data processor “z”. In this fashion, the data processor “z” becomes the owner of the remote copy of the file system “x”. Then execution loops back to step 251′.

The method of the present invention could be also used in a distributed network file server using a plurality of conventional data processors linked in a conventional fashion in a local or wide-area data network. Load balancing and failure recover using remote dual copy techniques could be used as just described. The system architecture would be similar to the architecture of FIG. 9 with the cached disk storage system omitted, and also with the dual redundant Ethernet 26 omitted. Instead of passing authenticated and authorized client requests over a local Ethernet from a data mover having received the client request to the data mover owning the local copy of file to be accessed, the authenticated and authorized client requests would be passed over the same data network that includes the clients and is used for transmitting the client requests from the clients to the data processors. An example of such a distributed network file server is shown in FIG. 29.

Referring to FIG. 29, the distributed network file server includes a plurality of data processors 321, 322, 323, 324 interconnected in a data network 325. The network 325 links a number of clients 326, 327, 328, 329 for direct access to any one of the data processors 321, 322, 323, 324. Each data processor, for example, is a commodity personal computer having at least one high-capacity disk drive. At least two of the data processors 323 and 324 have a respective display and keyboard and are each programmed (with a respective load balancing module 345, 347 and failure recovery module 346, 348) for functioning as a network server monitoring station.

At any given time, a first one of the two data processors 323, 324 is active for monitoring the file access functions of all of the data processors 321, 322, 323, 324, and the second one of the two data processors 323 and 324 monitors the first one of the two file servers. The second one of the two data processors 323, 324 periodically polls the first one of the two data processors, or periodically

Each of the data processors 321, 322, 323, 324 has a respective authentication and authorization unit 333, 336, 339, 342, file access and cache unit 224, 337, 340, 343, and disk storage 335, 338, 342, 344. Each authentication and authorization unit 333, 336, 339, 342 has a network interface, an authentication module, a read-only cache of client information, an authorization module, and a read-only cache of file authorization and ownership information, similar to the network interface 103, authentication module 106, read-only cache of client information 105, authorization module 106, and read-only cache of file authorization and ownership 107 in FIG. 9. Each file access and cache unit 334, 337, 340, and 343 has a network interface, file access module, cache of file access information, file cache module, and a cache of file data and attributes similar to the network interface 103, file access module 108, cache of file access information 111, file cache module 112, and cache of file data and attributes 113 in FIG. 9. Alternatively, the authentication and authorization unit 333, 336, 339, 342 and the file access and cache unit 334, 337, 340, 343 in each of the file servers 321, 322, 323, 324 could share a single network interface in each of the data processors. The load balancing modules 345, 347 and failure recovery modules 346, 348 are similar to the load balancing module 116 and failure recovery module 117 in FIG. 9.

Because the network 325 rather than an internal Ethernet is used for passing authenticated and authorized client requests for file data access between the data processors 321, 322, 323, 324, the distributed file server 320 will have a somewhat different format for passing the authenticated and authorized client requests between the data processors.

Referring to FIG. 30, there is shown a format of a network message for a file access command as transmitted over the network (325 in FIG. 29) from a client to a data processor. The network message has a header including a destination address 401 which is the IP address of the data processor, a source address 402 which is the IP address of the client, and a protocol data unit 403 which includes an NFS command for file access. A message transmitted from a network client to a data mover in the network file server 20 of FIG. 9 has a similar format.

Referring to FIG. 31, there is shown a format of a file access message 410 transmitted over the dual-redundant internal Ethernet 26 in the network file server 20 of FIG. 9 from the authorization module of a secondary data mover having received a client request for file access to the file access module of a primary data mover owning the file system to be accessed. The message 410 has a header including a destination address 411 which is the Ethernet address of the primary data mover, a source address 412 which is the Ethernet address of the secondary data mover, and a protocol data unit including results of authentication and authorization 413, and the NFS command 414 from the client. The results of the authentication and authorization may include any information generated or obtained during the authentication and authorization of the client request that would be useful for file access, such as an internal version of the client ID as used for indexing client information in the data movers if different from the client ID as found in the NFS request, and the priority and any access groups assigned to the client for granting file locks and resolving conflicting lock requests.

Referring to FIG. 32, there is shown a format of a file access message 420 as transmitted in the distributed network file server 320 of FIG. 29 over the network 325 from a secondary data processor having received the client request to a primary data processor owning of the local copy of the file to be accessed. The file access message 420 includes a header having a destination address 421 which is the IP address of the primary data processor, and a source address 422 which is the IP address of the secondary data processor. The message 420 has a protocol data unit including an NFS command 423 and optionally results of authentication and authorization 424. When the results of the authentication and authorization are included in the protocol data unit of the message 420, they could be placed either before or after the NFS command.

The results of authentication and authorization 424 are optional in the message 420, since it is possible for the primary data processor to again authenticate and authorize the NFS command. This may be desirable for security purposes, or to permit data processor ownership of a file system to be changed when a file access message is being forwarded from one data processor to another since the ownership of the file system to be accessed would be rechecked upon receipt of the message and the message could be redirected to a new owner if the ownership had just changed. It may also be desirable for a data processor in the system of FIG. 29 to process each data access command from each secondary data processor in exactly the same way as each data access command received directly from each network client, since this would simplify programming. In such a case, the secondary data processor “masquerades” as the client from which the message originated. After processing the NFS command 414 in the network message 420 from a secondary data processor, the primary data processor returns a response to the network source address 422, which is the secondary data processor IP address. The secondary data processor then forwards the response to the actual network client, at the client IP address which is the source address 402 in the original message 400 of FIG. 30. If the primary data processor would have received the original message 400 directly from the client, it would have processed the NFS command 403 in the same fashion and would have returned the response to the source address 402 which would have been the client's IP address.

Referring now to FIG. 33, there is shown a table of various file system ownership information used by the data processors 321, 322, 323, 324 in FIG. 29 and stored in each of the data processors. Associated with each file system is a file system identifier, a data processor which owns a local copy of the file system and a flag LSF indicating whether or not ownership of the local copy of the file system is temporarily suspended during a transfer of ownership, and a data processor which owns a remote copy of the file system and a flag RSF indicating whether or not ownership of the remote copy of the file system is temporarily suspended during a transfer of ownership, and any remote file system associated with the file system.

The local copy data processor ownership and any remote file system associated with the file system is analogous to the data mover owner and the remote file system, respectively, in the read-only cache of file authorization and ownership information in FIG. 11 for the network file server 20 of FIG. 9, and would be used by the authentication and authorization units of the data processors in the distributed network file server 320 of FIG. 29 in a similar fashion. The flag LSF would be set in step 224 of FIG. 21 by a load balancing module 245, 347 in FIG. 29 to suspend data mover ownership of the local copy of the file system and would read by a data processor in step 174 in FIG. 16 to determine whether or not there was a transfer of ownership of the local copy of the file system in progress.

The remote copy data processor ownership in FIG. 33 does not correspond to any ownership information for the network file server 20 of FIG. 9, and it is read by the file access and cache units 334, 337, 340, 343 in the data processors of the distributed data processor 320 of FIG. 9 during the commit operation of FIG. 26 to determine the data processor having the disk storage to which write-pending file data, file attributes, and file access information is to be committed. The flag RSF would be set in step 224 of FIG. 21 by a load balancing module 245, 347 in FIG. 29 to suspend data mover ownership of a remote copy of the file system and would read by a data processor during a commit operation in steps 204′, 205′, and 207′ of FIG. 26 to temporarily delay the writing of new remote copy data from the data processor owning the local copy of the file system to the data processor owning the remote copy of file system when a transfer of ownership of the remote copy of the file system is in progress. When the transfer of ownership of the remote copy would be finished, the data processor owning the local copy of the file system would write the new remote copy data to the new owner of the remote copy of the file system.

In view of the above, there has been disclosed a method and apparatus using multiple data processors for permitting a large number of network clients to simultaneously access a large number of files. Network interfaces are efficiently used because a data processor having a network interface can authenticate and authorize client requests for access to a large number of file systems. The management of locks on the files is also distributed among multiple data processors, and cache coherency problems are avoided by assigning one data processor the task of lock management for each file system. Load monitoring and dynamic balancing of lock management assignments ensures that the exclusivity of lock management is not a bottleneck to access speed.

An important advantage to the invention is that it can be practiced using a variety of hardware architectures and similar software modules for each hardware architecture. Therefore, one can easily use the hardware architecture most economical for particular requirements and circumstances. For high capacity and high-speed access, one can use the hardware architecture of FIGS. 1 and 9. For lower capacity or lower-speed access, one can omit the cached disk storage subsystem and use only commodity digital computers for lower hardware costs. In a network having under-utilized processing and storage capacity, the invention can be practiced with a minimum of hardware cost by installing the software modules in existing data processors of the network in accordance with the distributed processing architecture of FIG. 29. 

What is claimed is:
 1. In a data network having clients and a network file server having an array of data processors receiving client requests for access to a plurality of read-write file systems wherein a respective one of the data processors is presently assigned to manage locks on each of the read-write file systems, a method used when any one of the data processors receives a client request for access to any one of the read-write file systems, the client request specifying said one of the read-write file systems to access, said method comprising the steps of: a) in response to said one of the data processors receiving the client request, accessing stored assignment information indicating the respective one of the data processors being presently assigned to manage locks on said one of the file systems; and b) forwarding the client request from the data processor initially receiving the client request to the data processor indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems; and c) the respective one of the data processors indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems receiving the client request and continuing the processing of the client request by performing lock management for said one of the file systems for access to said one of the file systems as requested by the client request.
 2. The method as claimed in claim 1, which includes, during processing of a client request for access to a file system, changing an assignment of lock management of the file system from a first data processor to a second data processor.
 3. The method as claimed in claim 2, wherein processing of a client request for access to the file system is temporarily suspended during the changing of an assignment of lock management of the file system.
 4. The method as claimed in claim 3, wherein processing of the client request for access to the file system is temporarily suspended upon looking up stored assignment information indicating that a reassignment of a data processor to manage locks on the file system is in progress, and processing of the client request is continued by the second data processor.
 5. The method as claimed in claim 2, wherein the changing of the assignment of lock management of the file system is performed in response to a high loading condition of the first data processor.
 6. The method as claimed in claim 2, wherein the changing of the assignment of lock management of the file system is performed in response to monitoring loading on the data processors and finding that loading on the first data processor is relatively high and loading on the second data processor is relatively low.
 7. The method as claimed in claim 2, wherein the changing of the assignment of lock management of the file system includes transferring lock information for the file system from the first data processor to the second data processor.
 8. The method as claimed in claim 1, which includes said data processor initially receiving the data request forwarding the client request over the network to the data processor indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems.
 9. The method as claimed in claim 8, which includes the data processor indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems returning a response to the client request over the network to said data processor initially receiving said client request which transmits the response to the client request to a client having originated the client request.
 10. The method as claimed in claim 1, which further includes the data processor initially receiving the client request decoding the request and accessing stored client information to authenticate the request before the continuing of processing of the request by the respective one of the data processors indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems.
 11. The method as claimed in claim 1, which further includes the data processor initially receiving the client request accessing stored file system information to determine access authority required for performing the access to said one of the file systems as requested by the client request and determining that the client request has the access authority required for performing the access to said one of the file systems as requested by the client request before the continuing of processing of the client request by forwarding the client request to the data processor indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems.
 12. The method as claimed in claim 1 wherein, after the data processor initially receives the client request forwards the client request to the data processor indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems, said lock managing data processor returns a response to the client request to said data processor initially receiving the client request which transmits the response to the client having originated the client request.
 13. The method as claimed in claim 1, wherein the the data processor indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems continues the processing of the client request by accessing a file system cache of file data and file attributes for access to said one of the file systems as requested by the client request.
 14. The method as claimed in claim 1, wherein the data processor indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems continues the processing of the client request by accessing said one of the file systems in disk storage of the data processor indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems.
 15. The method as claimed in claim 1, wherein the data processor indicated by the stored assignment information as being presently assigned to manage locks on said one of the file systems continues the processing of the client request by accessing said one of the file systems in disk storage of a cached disk storage subsystem storing all of the plurality of read-write file systems.
 16. A method of servicing a request from a client in a data network including a network server with an array of data processors for access to a read-write file, said method comprising the steps of: a) one of the data processors in the array receiving the request; decoding the request to identify the client and a requested data access operation and a file system to which access is requested; accessing stored authorization information to obtain access requirements for the requested data access upon the file system; and rejecting the request if access rights of the client do not satisfy the access requirements for the requested data access upon the file system, and if the access rights of the client satisfy the access requirements for the requested data access upon the file system, initiating continued processing for the request by another data processor in the array indicated by stored assignment information as presently assigned to access the file system; b) the data processor indicated by the stored assignment information as presently assigned to access the file system accessing stored locking information indicating whether or not the requested data access operation by the client would be inconsistent with any pending data access operation upon the filing system; and if the requested data access operation by the client would be inconsistent with a pending data access operation upon the file system, suspending the processing of the request, and if the requested data access operation by the client would not be inconsistent with any pending data access operation upon the file system, performing the requested data access operation upon the file system.
 17. The method as claimed in claim 16, which includes, during the processing of the request, changing the stored assignment information from an indication that a first data processor is assigned to access the file system to an indication that a second data processor is assigned to access the file system.
 18. The method as claimed in claim 17, wherein the changing of the stored assignment information includes storing an indication that a change is being made in the assignment of the data processor to access the file system, and suspending processing of the request during a period of time in which there is an indication that a change is being made in the assignment of the data processor to access the file system.
 19. The method as claimed in claim 18, wherein processing of a client request for access to the file system is temporarily suspended after the data processor having received the request determines that the access rights of the client satisfy the access requirements for the requested data access upon the file system, and when the data processor having received the request looks up the stored assignment information to determine the data processor which is to continue processing of the request and finds that a change is in progress.
 20. The method as claimed in claim 18, wherein write-pending locking information for the file system in a cache of file access information is transferred from memory of the first data processor to memory of the second data processor when there is an indication that a change is being made in the assignment of the data processor to access the file system.
 21. The method as claimed in claim 18, wherein write-pending file attributes and data for the file system is transferred from memory of the first data processor to memory of the second data processor when there is an indication that a change is being made in the assignment of the data processor to access the file system.
 22. The method as claimed in claim 18, wherein the file system is copied from disk storage of the first data processor to disk storage of the second data processor when there is an indication that a change is being made in the assignment of the data processor to access the file system.
 23. The method as claimed in claim 17, wherein the changing of the stored assignment information is performed in response to a high loading condition of the first data processor.
 24. The method as claimed in claim 17, wherein the changing of the stored assignment information is performed in response to monitoring loading on the first and second data processors and finding that loading on the first data processor is relatively high and loading on the second data processor is relatively low.
 25. The method as claimed in claim 16, wherein the data processor having received the request is different from the data processor indicated by the stored assignment information as presently assigned to access the file system, and the data processor having received the request forwards the request over the network for continued processing by the data processor indicated by the stored assignment information as presently assigned to access the file system.
 26. The method as claimed in claim 25, wherein the data processor indicated by the stored assignment information as presently assigned to access the file system returns a response over the network to the data processor having received the request, and the data processor having received the request forwards the response to the client.
 27. The method as claimed in claim 16, wherein the data processor indicated by the stored assignment information as presently assigned to access the file system accesses the file system for all client requests for access to files in the file system, including client requests received by a plurality of data processors in the network, unless and until there is a change in the stored assignment information.
 28. The method as claimed in claim 16, which includes the data processor having received the request checking whether the data processor indicated by the stored assignment information as presently assigned to access the file system is different from the data processor having received the request, and when the data processor indicated by the stored assignment information as presently assigned to access the file system is different from the data processor having received the request, transmitting the request to the data processor indicated by the stored assignment information as presently assigned to access the file system.
 29. The method as claimed in claim 16, wherein the data processor indicated by the stored assignment information as presently assigned to access the file system returns a response to the data processor having received the request, and the data processor having received the request forwards the response to the client.
 30. The method as claimed in claim 16, wherein the data processor indicated by the stored assignment information as presently assigned to access the file system has a file system cache of file data and file attributes and performs the requested data access operation upon the file system by accessing the file system cache.
 31. The method as claimed in claim 16, wherein the data processor indicated by the stored assignment information as presently assigned to access the file system has disk storage and performs the requested data access operation upon the file system by accessing the disk storage.
 32. In a network file server having a plurality of data processors, a method employed by a file system service for responding to a request from a client on the network for access to a file in a file system, said method comprising the steps of: a) a data processor on the network receiving the request; and b) decoding the request, checking client authorization for access to the file in the file system, and checking whether the file is in a remote file system, and exporting the request to the remote file system when the file is in a remote file system, and when the file is not in a remote file system, forwarding the request for further processing by a data processor assigned to manage access to the file system, and the data processor assigned to manage access to the file system verifying that the file system is exported to the client, and then processing the request and sending a reply to the client, wherein the data processor having received the request in step a) accesses stored information indicating associations between file systems and a respective one of the data processors assigned to manage access to each of the file systems in order to find the data processor assigned to manage access to the file system including the file to be accessed and to forward the request for further processing by the data processor assigned to manage access to the file system including the file to be accessed.
 33. The method as claimed in claim 32, wherein the data processor having received the request in step a) forwards the request for further processing by the data processor assigned to manage access to the file system including the file to be accessed by checking whether the data processor assigned to manage access to the file system including the file to be accessed is the same as the data processor having received the request in step a), and if the data processor assigned to manage access to the file system including the file to be accessed is not the same as the data processor having received the request in step a), transmitting the request to the data processor assigned to manage access to the file system including the file to be accessed.
 34. The method as claimed in claim 33, wherein the request is transmitted from the data processor having received the request in step a) to the data processor assigned to manage access to the file system by transmitting the request over the network.
 35. The method as claimed in claim 33, wherein the request is transmitted from the data processor having received the request in step a) to the data processor assigned to manage access to the file system including the file to be accessed by transmitting the request over a dedicated data link isolated from the net work and linking the data processor having received the request in step a) to the data processor assigned to manage access to the file system including the file to be accessed.
 36. The method as claimed in claim 32, which further includes monitoring loading on the data processor assigned to manage access to the file system, and changing the assignment of the data processor assigned to manage access to the file system from a first data processor to a second data processor when loading on the first data processor is relatively high in comparison to loading on the second data processor.
 37. The method as claimed in claim 36, which further includes temporarily suspending processing of the request during a transfer of file access information for the file system from the first data processor to the second data processor when changing the assignment of the data processor assigned to manage access to the file system from the first data processor to the second data processor.
 38. The method as claimed in claim 36, wherein the data processor assigned to manage access to the file system including the file to be accessed also manages a file system cache of file data and file attributes for files in the file system, and processing of the request is temporarily suspended during a transfer of write-pending file data and file attributes from the first data processor to the second data processor when changing the assignment of the data processor assigned to manage access to the file system from the first data processor to the second data processor.
 39. The method as claimed in claim 32, wherein the file system service is a version of the Network File System (NFS).
 40. The method as claimed in claim 32, wherein the data processor having originally received the request transmits the request to the data processor assigned to manage access to the file system, the data processor assigned to manage access to the file system transmits the reply to the data processor having originally received the request, and then the data processor having originally received the request forwards the reply to the client.
 41. The method as claimed in claim 32, wherein the data processor assigned to manage access to the file system including the file to be accessed also processes any client request to create a new file in the file system.
 42. The method as claimed in claim 32, wherein the data processor assigned to manage access to the file system including the file to be accessed manages read and write locks on files in the file system.
 43. A network file server for providing clients with read-write access to read-write file systems, said network file server comprising, in combination: a plurality of data processors, each of the data processors having a network interface for receiving requests from clients on a network, each of the data processors being assigned to access at least one of the read-write file systems, an assigned one of the data processors being programmed to perform access to each of the read-write file systems, wherein each of the data processor is programmed to respond to a request by a client on the network for access to any one of the read-write file systems by decoding the request to identify the client and a requested data access operation and a file system to which access is requested; accessing stored assignment information about clients and about file systems to obtain access rights of the client and access requirements for the requested data access upon the file system; and rejecting the request if the access rights of the client do not satisfy the access requirements for the requested data access upon the file system, and if the access rights of the client satisfy the access requirements for the requested data access upon the file system, accessing stored assignment information indicating the assigned one of the data processors presently assigned to access the file system, and initiating continued processing for the client request by the assigned one of the data processors indicated by the stored assignment information as being presently assigned to access the file system; and each of the data processors is programmed to respond to initiation of continued processing for access to a file system to which said each data processor is presently assigned to access by accessing stored locking information indicating whether or not the access of the continued processing would be inconsistent with any pending data access operation upon the file system to which said each data processor is presently assigned to access; and if the access of the continued processing would be inconsistent with a pending data access operation upon the file system to which said each data processor is presently assigned to access, suspending the continued processing, and if the access of the continued processing would not be inconsistent with any pending data access operation upon the file system to which said each data processor is presently assigned to access, performing the access of the continued processing upon the file system.
 44. The network file server as claimed in claim 43, which includes at least one data processor programmed to monitor loading on a first data processor for changing to a second data processor the assignment of data access to a read-write file system to which the first data processor is presently assigned to access.
 45. The network file server as claimed in claim 44, wherein said at least one data processor programmed to monitor loading is programmed to initiate the change of the assignment to the second data processor in response to a high loading condition on the first data processor.
 46. The network file server as claimed in claim 44, wherein said at least one data processor programmed to monitor loading is programmed to initiate the change of the assignment to the second data processor in response to loading on the first data processor being relatively high and loading on the second data processor being relatively low.
 47. The network file server as claimed in claim 43, wherein each data processor is programmed to forward the request over the network for continued processing by the data processor indicated by the stored assignment information as presently assigned to access the file system when said each data processor having received the request is different from the data processor indicated by the stored assignment information as presently assigned to access the file system.
 48. The network file server as claimed in claim 47, wherein each data processor indicated by the stored assignment information as presently assigned to access the file system is programmed to return a response of each data access for a respective client over the network to a data processor having originally received a request for said each data access from the respective client, and the data processor having originally received said request for said each data access from the respective client is programmed to forward the response over the network to the respective client.
 49. The network file server as claimed in claim 43, wherein each data processor has a file system cache of file data and file attributes for performing data access operations upon at least one file system to which said each data processor is assigned to access.
 50. The network file server as claimed in claim 49, wherein each data processor is programmed for temporarily suspending processing for a request for access to said at least one file system to which said each data processor is assigned to access when there is a transfer of write-pending file data and file attributes for said at least one file system to which said each data processor is assigned to access from the file system cache of said each data processor to a file system cache of another one of the data processors for a change in the assignment of said each data processor to access said at least one file system to said another one of the data processors.
 51. The network file server as claimed in claim 43, which further includes a cached disk storage subsystem for storing the read-write file systems, and wherein each of the data processors has a respective data link to the cached disk storage subsystem.
 52. The network file server as claimed in claim 51, wherein the cached disk storage subsystem stores at least one read-only file system, and each of the data processors is programmed to receive from the network a client request for access to the read-only file system, and to respond to the client request for access to the read-only file system by accessing the read-only file system in the cached disk storage subsystem without any processing of the request for access to the read-only file system by another one of the data processors.
 53. The network file server as claimed in claim 43, wherein the data processors are programmed so that the data processor indicated by the stored assignment information as presently assigned to access the file system accesses the file system for all client requests for access to files in the file system, including client requests received by a plurality of data processors in the network, unless and until there is a change in the stored assignment information.
 54. The network file server as claimed in claim 43, wherein each data processor is programmed to check whether the data processor indicated by the stored assignment information as presently assigned to access the file system is different from said each data processor, and when the data processor indicated by the stored assignment information as presently assigned to access the file system is different from said each data processor, transmitting the request to the data processor indicated by the stored assignment information as presently assigned to access the file system, and when the data processor indicated by the stored assignment information as presently assigned to access the file system is not different from said each data processor, performing the data access operation upon the file system to which access is requested.
 55. The network file server as claimed in claim 43, wherein each data processor indicated by the stored assignment information as presently assigned to access each file system is programmed to return a response for each access for a respective client to a data processor having originally received a request for said each access from said respective client, and the data processor having originally received the request for said each access from said respective client is programmed to forward the response over the network to said respective client.
 56. The network file server as claimed in claim 43, wherein each data processor has disk storage for storing at least one file system to which said each data processor is assigned to access and for performing data access operations upon said at least one file system stored in the disk storage.
 57. The network file server as claimed in claim 56, wherein each data processor is programmed for temporarily suspending processing for a request for access to said at least one file system to which said each data processor is assigned to access when there is a transfer of said at least one file system which said each data processor is assigned to access from the disk storage of said each data processor to disk storage of another one of the data processors for a change in the assignment of said each data processor to access said at least one file system to said another one of the data processors.
 58. The network file server as claimed in claim 43, wherein each data processor has a cache of locking information and is programmed to manage read and write locks in the cache of locking information for access to at least one file system to which said each data processor is assigned to access.
 59. The network file server as claimed in claim 43, wherein each data processor is programmed for temporarily suspending processing for a request for access to said at least one file system to which said each data processor is assigned to access when there is a transfer of locking information for said at least one file system to which said each data processor is assigned to access from said each data processor to another one of the data processors for a change in the assignment of said each data processor to access said at least one file system to said another one of the data processors. 